﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TrainingCenterSystem;
using TrainingCenterSystem.VocabularyManagement;
//using TrainingCenterSystem.UserManagement;

namespace TrainingCenterSystem.TestManagement
{
    public class TestQuestion
    {
        #region protected members
        protected string _id;
        protected GenericWord _theWord;
        protected string _wordString;
        protected VocabularyTraining _owningTest;
        #endregion

        #region setters and getters
        /// <summary>
        /// Gets or sets the test id
        /// </summary>
        /// <remarks>Done automatically. It takes the complete path to the filename by default</remarks>
        public string ID
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// Gets or sets the word associated with the question
        /// </summary>
        public GenericWord TheWord
        {
            get { return _theWord; }
            set { _theWord = value; }                
        }

        /// <summary>
        /// Gets or sets the owning test/vocabulary training
        /// </summary>
        public VocabularyTraining OwningTest
        {
            get { return _owningTest; }
            set { _owningTest = value; }
        }

        /// <summary>
        /// Gets or sets the word of the question as string
        /// </summary>
        /// <remarks>This may differ depending on test type, level and direction </remarks>
        public string WordString
        {
            get { return _wordString; }
            set { _wordString = value; }
        }
        #endregion

        #region constructors
        public TestQuestion()
        {
        }

        /// <summary>
        /// Creates a test question
        /// </summary>
        /// <param name="id">the question id</param>
        /// <param name="owningTest">the ownning test</param>
        public TestQuestion(string id, VocabularyTraining owningTest)
        {
            _id = id;
            _owningTest = owningTest;
        }
        #endregion

        #region methods
        #endregion
    }
}
